#!/bin/sh
PID=`cat /opt/wap/tomcat4-www/log/catalina.pid`
RUN=`ps -ef |grep $PID|grep -v grep |wc -l`
echo $PID
if test $RUN -eq 1
then
echo RUNNING....
else
echo STOPED..... 
/opt/wap/tomcat4-www/bin/watch-server.sh
echo Now it has been started.
fi
